const util = require('../../../utils/util.js')
Page({
    data: {
        code: '2WS3N1'
    },
    onLoad: function (options) {
        const recCode = options.recCode
        this.showRecCode(recCode)
    },
    showRecCode(recCode) {
      this.setData({
        code: recCode
      })
    },
    // 复制邀请码到剪贴板
    copyCode() {
        const that = this
        wx.setClipboardData({data: that.data.code})
    }
})